package cn.zf233.jwtshiro.common;

/**
 * Created by zf233 on 2020/11/27
 * 响应码
 */
public enum ResponseCodeENUM {

    SUCCESS(200, "SUCCESS"),
    ERROR(500, "ERROR"),
    NEED_LOGIN(700, "NEED_LOGIN"),
    ILLEGAL_ARGUMENT(800, "ILLEGAL_ARGUMENT");

    private final int code;
    private final String desc;


    ResponseCodeENUM(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
